<extend file='resource/view/home'/>
<style>
    .category_title h2{
        font-size: 40px;
        margin-bottom: 10px;
    }
    .category_title span{
        font-size: 20px;
    }

</style>
<block name="content">
    <li class="h-article">
        <div class="category_title" style="text-align: center">
            <h2>
                {{$headData['type']}}
                {{$headData['name']}}
            </h2>
            <span>
                共{{$headData['total']}} 篇文章
            </span>
        </div>
        <foreach from="$articleData" key="$k" value="$v">
            <li class="h-article" style="font-size: 15px">
                <a href="{{__ROOT__}}/wz/{{$v['aid']}}.html"><img src="{{__ROOT__}}/{{$v['thumb']}}"></a>
                <h3 style="margin-bottom: 15px; font-size: 25px"><a href="{{__ROOT__}}/wz/{{$v['aid']}}.html">{{$v['title']}}</a></h3>
                <span> 作者：{{$v['author']}}</span>
                发布日期：<time pubdate="pubdate" datetime="{{date('y-m-d',$v['sendtime'])}}">{{date(y-m-d,$v['sendtime'])}}</time>
                分类：<a href="">{{$v['cname']}}</a>
                <p>{{$v['digest']}}</p>
                <div class="_footer" style="margin-top: 20px">
                    <i class="glyphicon glyphicon-tags"></i>
                    <foreach from="$v['tag']" key="$kk" value="$vv">
                        <a href="{{__ROOT__}}/tag/{{$vv['aid']}}.html">{{$vv['tname']}}</a>、
                    </foreach>
                </div>
            </li>
        </foreach>
    </li>
</block>